package libro.cap02.figuras;

public class Rectangulo extends FiguaraGeometrica {

	private double base;
	private double altura;
	
	public Rectangulo(double b,double h){
		
		super("Rectangulo"); //constructor de la clase padre
		this.base=b;
		this.altura=h;
	}

	@Override
	public double area() {
		
		return base * altura;
	}

	public double getBase() {
		return base;
	}

	public void setBase(double base) {
		this.base = base;
	}

	public double getAltura() {
		return altura;
	}

	public void setAltura(double altura) {
		this.altura = altura;
	}

	
}
